package domain.worm;

import com.uqbar.vainilla.DeltaState;

public abstract class WormState {

	private Worm worm;
	
	public WormState(Worm worm){
		this.worm = worm;
	}
	
	public void newState(WormState state){
		worm.setState(state);
	}

	public Worm getWorm() {
		return worm;
	}

	public void setWorm(Worm worm) {
		this.worm = worm;
	}

	public abstract void update(DeltaState deltaState);
		
}
